<script>
	import Vue from 'vue'
	export default {
		onLaunch: function() {
			uni.getSystemInfo({
				success: function(e) {
				
					// #ifdef APP-PLUS
						Vue.prototype.statusBar = e.statusBarHeight;
						if (e.platform == 'android') {
							Vue.prototype.$config.dev = 'android';
							Vue.prototype.$config.customBar = e.statusBarHeight + 50;
						} else {
							Vue.prototype.$config.dev = 'ios';
							Vue.prototype.$config.customBar = e.statusBarHeight + 45;
						};
					// #endif
					//#ifdef H5
						Vue.prototype.$config.dev = 'h5';
					//#endif
					// #ifdef MP-BAIDU
						Vue.prototype.$config.dev = 'baidu';
					// #endif	
					// #ifdef MP-QQ 
						Vue.prototype.$config.dev = 'qq';
					// #endif	
					// #ifdef MP-BAIDU || MP-QQ || H5
						Vue.prototype.$config.statusBar = e.statusBarHeight;
						Vue.prototype.$config.customBar = e.statusBarHeight + 45;
					// #endif	
					// #ifdef MP-WEIXIN
						Vue.prototype.$config.dev = 'weixin';
						Vue.prototype.$config.statusBar = e.statusBarHeight;
						let custom = wx.getMenuButtonBoundingClientRect();
						Vue.prototype.$config.custom = custom;
						Vue.prototype.$config.customBar = custom.bottom + custom.top - e.statusBarHeight;
					// #endif	
					
				}
			})
		},
		onShow: function() {
			
		},
		onHide: function() {
			
		}
	}
</script>

<style>
	@import url("./static/css/common.css");
</style>
